package pt.nmfa.peste.session;

import pt.nmfa.peste.entity.*;
import org.jboss.seam.annotations.Name;
import org.jboss.seam.framework.EntityQuery;
import java.util.Arrays;

@Name("statusActionsList")
public class StatusActionsList extends EntityQuery<StatusActions> {

	private static final String EJBQL = "select statusActions from StatusActions statusActions";

	private static final String[] RESTRICTIONS = { "lower(statusActions.statusAction) like lower(concat(#{statusActionsList.statusActions.statusAction},'%'))", };

	private StatusActions statusActions = new StatusActions();

	public StatusActionsList() {
		setEjbql(EJBQL);
		setRestrictionExpressionStrings(Arrays.asList(RESTRICTIONS));
		setMaxResults(25);
	}

	public StatusActions getStatusActions() {
		return statusActions;
	}
}
